import Vue from 'vue'
import Vuex from 'vuex'
import persist from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    user: {
      nikeName: '',
      pwd: '',
      mobile: ''
    }
  },
  mutations: {
    changeUser(state, value) {
      state.user = value
    }
  },
  actions: {
  },
  modules: {
  },

  plugins: [persist()]
})
